package com.sm.honkon.data.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.sm.honkon.data.bean.ControlLogCatEntity

/**
 * @description
 * @author csw
 * @date 2021-05-05
 */
@Dao
interface LogCatDao {

    @Query("Delete FROM logcat")
    suspend fun deleteAll()

    @Insert
    suspend fun insert(user: ControlLogCatEntity)

    @Query("SELECT * FROM logcat WHERE customerId = :userId ")
    fun getLogCatById(userId: Long): LiveData<List<ControlLogCatEntity>>

}